<template>
    <a-row :gutter="[16,16]" type="flex">
        <a-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" :xxl="12" flex="auto">

            <WxmpForm    class="flexCol"/>
        </a-col>
        <a-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" :xxl="12" flex="auto">
            <SystemInfo :ServerInfo="WxmpServerInfo"     v-if="WxmpServerInfo"   class="flexCol"   />
        </a-col>

    </a-row>

</template>
<script>

    import {GetWeixinMpServer} from '../../../../util/internal.api'


    export default {
        components: {
            //配置表单
            WxmpForm: () => import("./components/WxmpForm"),
            //系统信息组建
            SystemInfo: () => import("./components/SystemInfo")

        },

        data() {
            return {


                WxmpServerInfo: {}

            };
        },
        methods: {
            getServerInfo() {
                //1.o 获取当前服务器信息
                GetWeixinMpServer().then(res => {
                    if(res.code===0){

                        this.WxmpServerInfo=res.data
                    }


                })
            },


            //数据初始化
            async init() {
                this.getServerInfo();


            }
        },
        created() {
            this.init();
        }
    };
</script>


